package uk.ac.ncl.carrent.tests;

import static org.junit.Assert.*;

import org.junit.Test;

import uk.ac.ncl.carrent.*;

public class RegistrationNumberTest {

	@Test
	public void testRegistrationNumber() {
		final String reg = "a1234";
		RegistrationNumber regNo = RegistrationNumber.getInstance(reg);
		assertEquals("a", regNo.getLetter());
		assertEquals(1234, regNo.getNumber());
	}

}
